From: Richard Dodd (dodj) Date: Thu, 12 Apr 2018 07:32:53 +0000 (+0100) Subject: remove getter/setter docs X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~1^2~77^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=8a6f10a7a87325bafccbc0504473ed51fc3fc395;p=cargo.git remove getter/setter docs --- diff --git a/src/cargo/core/package_id_spec.rs b/src/cargo/core/package_id_spec.rs index 6378c481f..0eef43800 100644 --- a/src/cargo/core/package_id_spec.rs +++ b/src/cargo/core/package_id_spec.rs @@ -141,20 +141,18 @@ impl PackageIdSpec { }) } - /// Getter for `name` field. pub fn name(&self) -> &str { &self.name } - /// Getter for `version` field. + pub fn version(&self) -> Option<&Version> { self.version.as_ref() } - /// Getter for `url` field. + pub fn url(&self) -> Option<&Url> { self.url.as_ref() } - /// Setter for `url` field. pub fn set_url(&mut self, url: Url) { self.url = Some(url); }